.class Lcom/example/m6wmr/MyBalanceActivity$6;
.super Ljava/lang/Thread;
.source "MyBalanceActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/MyBalanceActivity;->getshopstyle()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/MyBalanceActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/MyBalanceActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/MyBalanceActivity$6;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    .line 626
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 15

    .prologue
    .line 628
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 629
    iget-object v12, p0, Lcom/example/m6wmr/MyBalanceActivity$6;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    .line 630
    const-string v13, "userInfo"

    const/4 v14, 0x0

    .line 629
    invoke-virtual {v12, v13, v14}, Lcom/example/m6wmr/MyBalanceActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v8

    .line 631
    .local v8, "preferences":Landroid/content/SharedPreferences;
    const-string v12, "uid"

    const-string v13, ""

    invoke-interface {v8, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 632
    .local v0, "account":Ljava/lang/String;
    const-string v12, "pass"

    const-string v13, ""

    invoke-interface {v8, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 634
    .local v9, "pwd":Ljava/lang/String;
    new-instance v7, Landroid/os/Message;

    invoke-direct {v7}, Landroid/os/Message;-><init>()V

    .line 635
    .local v7, "msg":Landroid/os/Message;
    if-eqz v0, :cond_0

    const-string v12, ""

    invoke-virtual {v0, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_1

    .line 636
    :cond_0
    const/4 v12, 0x3

    iput v12, v7, Landroid/os/Message;->arg1:I

    .line 638
    iget-object v12, p0, Lcom/example/m6wmr/MyBalanceActivity$6;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/m6wmr/MyBalanceActivity;->access$14(Lcom/example/m6wmr/MyBalanceActivity;)Landroid/os/Handler;

    move-result-object v12

    invoke-virtual {v12, v7}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 687
    :goto_0
    return-void

    .line 640
    :cond_1
    new-instance v12, Ljava/lang/StringBuilder;

    iget-object v13, p0, Lcom/example/m6wmr/MyBalanceActivity$6;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->myApp:Lmyapp/MyApp;
    invoke-static {v13}, Lcom/example/m6wmr/MyBalanceActivity;->access$10(Lcom/example/m6wmr/MyBalanceActivity;)Lmyapp/MyApp;

    move-result-object v13

    invoke-virtual {v13}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v13, "/index.php?ctrl=app&action=memcard&uid="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&pwd="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&datatype=json"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    .line 642
    .local v11, "url":Ljava/lang/String;
    const-string v12, "ShopyushowACtivity"

    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "checklogin()\u3000"

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 644
    iget-object v12, p0, Lcom/example/m6wmr/MyBalanceActivity$6;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->myApp:Lmyapp/MyApp;
    invoke-static {v12}, Lcom/example/m6wmr/MyBalanceActivity;->access$10(Lcom/example/m6wmr/MyBalanceActivity;)Lmyapp/MyApp;

    move-result-object v12

    invoke-static {v11, v12}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v10

    .line 649
    .local v10, "str":Ljava/lang/String;
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v10}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 650
    .local v4, "json":Lorg/json/JSONObject;
    const-string v12, "error"

    invoke-virtual {v4, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v13, "true"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_2

    .line 652
    const-string v12, "msg"

    invoke-virtual {v4, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, v7, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 653
    const/4 v12, 0x1

    iput v12, v7, Landroid/os/Message;->arg1:I

    .line 654
    iget-object v12, p0, Lcom/example/m6wmr/MyBalanceActivity$6;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/m6wmr/MyBalanceActivity;->access$14(Lcom/example/m6wmr/MyBalanceActivity;)Landroid/os/Handler;

    move-result-object v12

    invoke-virtual {v12, v7}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 678
    .end local v4    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v2

    .line 680
    .local v2, "e":Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    .line 681
    const/4 v12, 0x4

    iput v12, v7, Landroid/os/Message;->arg1:I

    .line 683
    iget-object v12, p0, Lcom/example/m6wmr/MyBalanceActivity$6;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/m6wmr/MyBalanceActivity;->access$14(Lcom/example/m6wmr/MyBalanceActivity;)Landroid/os/Handler;

    move-result-object v12

    invoke-virtual {v12, v7}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 661
    .end local v2    # "e":Lorg/json/JSONException;
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    const-string v12, "msg"

    invoke-virtual {v4, v12}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v5

    .line 662
    .local v5, "json1":Lorg/json/JSONObject;
    const-string v12, "rechargelist"

    invoke-virtual {v5, v12}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    .line 663
    .local v1, "array":Lorg/json/JSONArray;
    iget-object v12, p0, Lcom/example/m6wmr/MyBalanceActivity$6;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    new-instance v13, Ljava/util/ArrayList;

    invoke-direct {v13}, Ljava/util/ArrayList;-><init>()V

    iput-object v13, v12, Lcom/example/m6wmr/MyBalanceActivity;->list:Ljava/util/List;

    .line 664
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_1
    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v12

    if-lt v3, v12, :cond_3

    .line 674
    const/16 v12, 0x14

    iput v12, v7, Landroid/os/Message;->arg1:I

    .line 676
    iget-object v12, p0, Lcom/example/m6wmr/MyBalanceActivity$6;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/m6wmr/MyBalanceActivity;->access$14(Lcom/example/m6wmr/MyBalanceActivity;)Landroid/os/Handler;

    move-result-object v12

    invoke-virtual {v12, v7}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 665
    :cond_3
    new-instance v6, Lbean/ChargeBean;

    invoke-direct {v6}, Lbean/ChargeBean;-><init>()V

    .line 666
    .local v6, "map":Lbean/ChargeBean;
    invoke-virtual {v1, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "cost"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v6, v12}, Lbean/ChargeBean;->setCharge(Ljava/lang/String;)V

    .line 667
    invoke-virtual {v1, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "totalsendcost"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v6, v12}, Lbean/ChargeBean;->setSend(Ljava/lang/String;)V

    .line 668
    invoke-virtual {v1, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "juanname"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v6, v12}, Lbean/ChargeBean;->setName(Ljava/lang/String;)V

    .line 669
    iget-object v12, p0, Lcom/example/m6wmr/MyBalanceActivity$6;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    iget-object v12, v12, Lcom/example/m6wmr/MyBalanceActivity;->list:Ljava/util/List;

    invoke-interface {v12, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 664
    add-int/lit8 v3, v3, 0x1

    goto :goto_1
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 692
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 693
    monitor-exit p0

    return-void

    .line 692
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
